package Work.com;

import java.util.Scanner;

public class Exam05 {
    public static void getPackageName(String str){
        int  count = 0;
        for (int i = 0; i <str.length() ; i++) {
            String a = ".";
            String b = String.valueOf(str.charAt(i));
            if (a.equals(b) !=true){
                count ++;
            }else if (a.equals(b) == true){
                break;
            }
        }
        String b;
        b = str.substring(0,count);
        System.out.println(b);
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入字符串：");
        String str = sc.next();
        getPackageName(str);
    }
}
